import java.security.MessageDigest

class CryptoService {

  boolean transactional = false

  def encrypt(byte[] src) {
      def md = MessageDigest.getInstance("SHA-256");
      def dig = md.digest(src);
      return dig.encodeBase64();
  }
	
}
